package org.quickjsf.core.annotations;

import java.io.Serializable;

import org.quickjsf.core.annotations.MRelation.RELATION;

public class MappingRelation implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2000092687360787504L;
	
	private String source;
	private RELATION relation;
	private String mappedBy;
	private Class<?> targetEntity;
	
	public MappingRelation(String source, RELATION relation, String mappedBy,
			Class<?> targetEntity) {
		super();
		this.source = source;
		this.relation = relation;
		this.mappedBy = mappedBy;
		this.targetEntity = targetEntity;
	}

	public RELATION getRelation() {
		return relation;
	}
	
	public void setRelation(RELATION relation) {
		this.relation = relation;
	}
	
	public String getMappedBy() {
		return mappedBy;
	}
	
	public void setMappedBy(String mappedBy) {
		this.mappedBy = mappedBy;
	}
	
	public Class<?> getTargetEntity() {
		return targetEntity;
	}
	
	public void setTargetEntity(Class<?> targetEntity) {
		this.targetEntity = targetEntity;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}
}
